<template>
	<view class="contact">
		<image class="img"
			src="https://wwwstatic.vivo.com.cn/vivoportal/files/image/home/20211231/1202738aaf6745970e9401d99e3b5dc2.jpg"
			mode=""></image>
		<view class="info">
			<view @click="telPhone()" class="">全国客户服务热线 7*24小时 400-678-9688</view>
			<view class="">NEX专属服务热线 7*24小时 400-679-9688</view>
		</view>
		<map class="map" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 39.909,
				longitude: 116.39742,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '../../static/logo.png'
				}, {
					latitude: 39.90,
					longitude: 116.39,
					iconPath: '../../static/location.png'
				}]
			};
		},
		methods:{
			telPhone(){
				uni.makePhoneCall({
					phoneNumber: '118367762781' //仅为示例
				});
			}
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 350rpx;
		}

		.info {
			padding: 10rpx 20rpx;

			view {
				line-height: 50rpx;
				font-size: 28rpx;
				border-bottom: 1px solid #EEEEEE;
			}
		}

		.map {
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
